package com.wangxin.study8.annotations;

/**
 * @ClassName AnnotationsMain
 * @Description TODO
 * @Author jojo.wang
 * @Date 2019-04-25 17:29
 * @Version 1.0
 **/
public class AnnotationsMain {
    public static void main(String[] args) {
        Hint hint = Per.class.getAnnotation(Hint.class);
        System.out.println(hint);

        Hints hints = Per.class.getAnnotation(Hints.class);
        System.out.println(hints);

        Hint[] hints2 = Per.class.getAnnotationsByType(Hint.class);
        System.out.println(hints2.length);
    }
}
